﻿using System;
using System.Diagnostics.Contracts;
using Adalbertus.BudgetPlanner.Domain;
using Adalbertus.BudgetPlanner.Services.CodeContracts;

namespace Adalbertus.BudgetPlanner.Services
{
    [ContractClass(typeof(ISavingServiceContract))]
    public interface ISavingService : IBaseService<Saving>
    {
        Saving Create(string name);
        SavingEntry CreateEntry(Saving saving, decimal value, DateTime date);

        void RemoveEntry(SavingEntry entry);
    }
}
